package com.itheima.spring_observer_review;

import org.springframework.context.ApplicationEvent;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-26 21:55
 **/
public class MessageEvent extends ApplicationEvent {
    public MessageEvent(Object source) {
        super(source);
    }
    
    private String phone;
    
    public MessageEvent(Object source, String phone) {
        super(source);
        this.phone = phone;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
}
